#!/bin/bash

for ((i=0; i<10000; i++))
do
    ((num_start=i*50))
    ((num_end=(i+1)*50))

    curl -X POST -H "Content-Type: application/json" -H "Cache-Control: no-cache" -H "Postman-Token: a1735c7f-763b-b279-53c7-76e28b4b7320"  \
    -d '{
    "uuid": "87556c6688ce49a9bcd5950b226fdc01",
    "appName": [ "jsec-sgw-logserver" ],
    "timeRange": { "start": "2019-04-20 19:00:00", "end": "2019-04-20 23:00:00" },
    "match": [ { "eq":{         "waf_id":["waf-kt68jdqnqf"] } } ],
    "resp": [],
    "from": '$num_start',
    "size": '$num_end'
}' \
    "http://logeye.jdcloud.com/api/v2/search" >> waf.log 2>&1

done

